
import Vue from "vue";
import Router from "vue-router";
import errorManage from "../pages/errorManage/route.js";
import testManage from "../pages/testManage/route.js";

Vue.use(Router);
const router = new Router({
    routes: [...errorManage, ...testManage]
})
// 未匹配路由跳转首页
router.beforeEach((to, from, next) => {
    to.matched.length > 0 ? next() : next("/");
});
export default router;
